--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit a55c8a2425d671579600af389b49485064050c37
Parents : 51523a2
Author : Mark Qvist <mark@unsigned.io>
Date : 2024-08-17T14:23:01+02:00
Added version info to startup log
Changes
Diff
diff --git a/sbapp/main.py b/sbapp/main.py
index 0a2037a9..f4958fe9 100644
--- a/sbapp/main.py
+++ b/sbapp/main.py
@@ -202,6 +202,8 @@ class SidebandApp(MDApp):
else:
self.sideband = SidebandCore(self, config_path=self.config_path, is_client=False, verbose=(args.verbose or __debug_build__))
+ self.sideband.version_str = "v"+__version__+" "+__variant__
+
self.set_ui_theme()
self.font_config()
self.update_input_language()
@@ -5520,6 +5522,7 @@ def run():
is_daemon=True
)
+ sideband.version_str = "v"+__version__+" "+__variant__
sideband.start()
while True:
time.sleep(5)
diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py
index 1839939f..ca514f96 100644
--- a/sbapp/sideband/core.py
+++ b/sbapp/sideband/core.py
@@ -141,6 +141,7 @@ class SidebandCore():
self.service_stopped = False
self.service_context = service_context
self.owner_service = owner_service
+ self.version_str = ""
if config_path == None:
self.app_dir = plyer.storagepath.get_home_dir()+"/.config/sideband"
@@ -3833,7 +3834,7 @@ class SidebandCore():
thread.start()
self.setstate("core.started", True)
- RNS.log("Sideband Core "+str(self)+" started")
+ RNS.log("Sideband Core "+str(self)+" version "+str(self.version_str)+" started")
def stop_webshare(self):
if self.webshare_server != None:
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────